<template>
  <div class="showCard">
    <div class="showCard-header">Final Test Information</div>
    <div class="showCard-C">
      <div class="showCard-item item-total">
        <div class="item-num">{{ showInfo.testedQty||0 }}</div>
        <div class="item-text">Total</div>
      </div>
      <div class="showCard-item item-pass">
        <div class="item-num">{{ showInfo.passQty||0 }}</div>
        <div class="item-text">Pass</div>
      </div>
      <div class="showCard-item item-yield">
        <div class="item-num">{{ showInfo.yield||0 }}</div>
        <div class="item-text">Yield</div>
      </div>
    </div>
  </div>
</template>
<script>
export default {
  name: 'ShowCard',
  components: {},
  props: {
    showInfo: {
      type: Object,
      default: () => ({})
    }
  }
}
</script>
<style lang='scss' scoped>
.showCard {
  width: 100%;
  margin-bottom: 10px;
  .showCard-header {
    width: 100%;
    height: 40px;
    background: #add7ff;
    color: #1a70c1;
    line-height: 40px;
    text-align: left;
    font-weight: 700;
    font-size: 16px;
    box-sizing: border-box;
    padding-left: 10px;
  }
  .showCard-C {
    border: 1px solid #add7ff;
    box-sizing: border-box;
    padding: 10px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    .showCard-item {
      width: 32%;
      padding: 20px 0;
      border-radius: 4px;
      color: #fff;
      text-align: center;
      .item-num {
        font-weight: 700;
        font-size: 20px;
      }
      .item-text {
        font-size: 12px;
      }
    }
    .item-total {
      background-color: #139af6;
    }
    .item-pass {
      background-color: #18be6b;
    }
    .item-yield {
      background-color: #ff9901;
    }
  }
}
</style>
